<?php

namespace App\Http\Controllers\Web;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Knowledges;
use App\Model\Goods;
use App\Model\Schedule;
class KnowledgeController extends Controller
{
    //
    public function index(Request $request){
        $navs =['基础知识','港口知识','保险知识','物流知识','交易知识','金融知识'];

        return view('knowledge',[
            'navs'=>$navs,
            'currentNav' => 'knowledge',
            'type' => $request->type??0,
            'title' => $navs[$request->type??0],
            'knowledges' => Knowledges::getData($request->type??0,$request->page??1),
        ]);
    }
}
